package com.test.demo.service.Imp;

/**
 * 王宇serviceIMP层代码
 * */
import com.test.demo.dao.UserMapper;
import com.test.demo.model.User;
import com.test.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImp  implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectByPrimaryKeyuser(Integer uid) {
        return userMapper.selectByPrimaryKeyuser(uid);
    }

    @Override
    public List<User> getUIsBegin(){
        System.out.println("执行SQL语句");
        return userMapper.getUIsBegin();
    }
    //获取全部角色信息
    @Override
    public List<User> getAll1() { return userMapper.getAll1(); }

    @Override
    public int insertUser(User usermodel) {
        return userMapper.insertUser(usermodel);
    }

    @Override
    public int delUser(Integer uid) {
        return userMapper.delUser(uid);
    }

    @Override
    public int updateUser(User usermodel) {
        return userMapper.updateUser(usermodel);
    }
}
